package com.example.storage;

import java.util.List;

public class RecipeResponse {
    private int error_code;
    private String reason;
    private Result result;

    public int getErrorCode() {
        return error_code;
    }

    public void setErrorCode(int error_code) {
        this.error_code = error_code;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public static class Result {
        private int curpage;
        private int allnum;
        private List<Recipe> list;

        public int getCurpage() {
            return curpage;
        }

        public void setCurpage(int curpage) {
            this.curpage = curpage;
        }

        public int getAllnum() {
            return allnum;
        }

        public void setAllnum(int allnum) {
            this.allnum = allnum;
        }

        public List<Recipe> getList() {
            return list;
        }

        public void setList(List<Recipe> list) {
            this.list = list;
        }

        public static class Recipe {
            private int id;
            private int type_id;
            private String type_name;
            private String cp_name;
            private String zuofa;
            private String texing;
            private String tishi;
            private String tiaoliao;
            private String yuanliao;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getTypeId() {
                return type_id;
            }

            public void setTypeId(int type_id) {
                this.type_id = type_id;
            }

            public String getTypeName() {
                return type_name;
            }

            public void setTypeName(String type_name) {
                this.type_name = type_name;
            }

            public String getCpName() {
                return cp_name;
            }

            public void setCpName(String cp_name) {
                this.cp_name = cp_name;
            }

            public String getZuofa() {
                return zuofa;
            }

            public void setZuofa(String zuofa) {
                this.zuofa = zuofa;
            }

            public String getTexing() {
                return texing;
            }

            public void setTexing(String texing) {
                this.texing = texing;
            }

            public String getTishi() {
                return tishi;
            }

            public void setTishi(String tishi) {
                this.tishi = tishi;
            }

            public String getTiaoliao() {
                return tiaoliao;
            }

            public void setTiaoliao(String tiaoliao) {
                this.tiaoliao = tiaoliao;
            }

            public String getYuanliao() {
                return yuanliao;
            }

            public void setYuanliao(String yuanliao) {
                this.yuanliao = yuanliao;
            }
        }
    }
}
